export type Person = {
  name: string;
  age: number;
};

type NullablePerson = {
  [P in keyof Person]: Person[P] | null;
};


function t2(p: NullablePerson) {}

t2({
  name: "Alice",
  age: null,
});

// 固定变量shape，即类型
const nullablePerson: NullablePerson = {
  name: "Alice",
  age: null,
};

console.log(nullablePerson);
